import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '期数',
    align: "center",
    dataIndex: 'period'
  },
  {
    title: '名称',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '用户id',
    align: "center",
    dataIndex: 'userid'
  },
  {
    title: '一级部门',
    align: "center",
    dataIndex: 'firstDept'
  },
  {
    title: '二级部门',
    align: "center",
    dataIndex: 'secondDept'
  },
  {
    title: '岗位',
    align: "center",
    dataIndex: 'title'
  },
  {
    title: '评选类型',
    align: "center",
    dataIndex: 'voteType'
  },
  {
    title: '理由',
    align: "center",
    dataIndex: 'reason',
  },
  {
    title: '票数',
    align: "center",
    dataIndex: 'votes',
    sorter: true,
  },
  {
    title: '普通投票',
    align: "center",
    dataIndex: 'normalVote'
  },
  {
    title: '委员会投票',
    align: "center",
    dataIndex: 'vipVote'
  },

];

// 高级查询数据
export const superQuerySchema = {
  name: {title: '名称',order: 0,view: 'text', type: 'string',},
  userid: {title: '用户id',order: 1,view: 'text', type: 'string',},
  firstDept: {title: '一级部门',order: 2,view: 'text', type: 'string',},
  secondDept: {title: '二级部门',order: 3,view: 'text', type: 'string',},
  title: {title: '岗位',order: 4,view: 'text', type: 'string',},
  voteType: {title: '评选类型',order: 5,view: 'list', type: 'string',dictCode: '',},
  reason: {title: '理由',order: 6,view: 'umeditor', type: 'string',},
  votes: {title: '票数',order: 7,view: 'number', type: 'number',},
  normalVote: {title: '普通投票',order: 8,view: 'number', type: 'number',},
  vipVote: {title: '委员会投票',order: 9,view: 'number', type: 'number',},
  period: {title: '期数',order: 10,view: 'text', type: 'string',},
};
